package com.eastfair.pay.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 实体类
 * 发票
 * </p>
 *
 * @author clm
 * @since 2022-06-08
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "InvoiceSaveDTO", description = "发票")
public class InvoiceSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 合同id,结算单id
     */
    @ApiModelProperty(value = "合同id,结算单id")
    private Long businessId;
    /**
     * 合同,结算单 枚举
     */
    @ApiModelProperty(value = "合同,结算单 枚举")
    @Size(max = 64, message = "合同,结算单 枚举长度不能超过64")
    private String businessType;
    /**
     * 发票类型
     */
    @ApiModelProperty(value = "发票类型")
    @Size(max = 255, message = "发票类型长度不能超过255")
    private String invoiceType;
    /**
     * 发票代码
     */
    @ApiModelProperty(value = "发票代码")
    @Size(max = 255, message = "发票代码长度不能超过255")
    private String invoiceCode;
    /**
     * 发票号码
     */
    @ApiModelProperty(value = "发票号码")
    @Size(max = 255, message = "发票号码长度不能超过255")
    private String invoiceNum;
    /**
     * 发票金额
     */
    @ApiModelProperty(value = "发票金额")
    @Size(max = 255, message = "发票金额长度不能超过255")
    private BigDecimal invoiceAmount;
    /**
     * 开票时间
     */
    @ApiModelProperty(value = "开票时间")
    private LocalDateTime invoicingTime;
    /**
     * 开票状态 数据字典
     */
    @ApiModelProperty(value = "开票状态 数据字典")
    private String invoiceState;
    /**
     * 费用类型
     */
    @ApiModelProperty(value = "费用类型")
    @Size(max = 255, message = "费用类型长度不能超过255")
    private String costType;
    /**
     * 经手人id
     */
    @ApiModelProperty(value = "经手人id")
    private Long applicantId;
    /**
     * 经手人名称登录人所在部门所有人（默认当前登录人）
     */
    @ApiModelProperty(value = "经手人名称登录人所在部门所有人（默认当前登录人）")
    @Size(max = 255, message = "经手人名称登录人所在部门所有人（默认当前登录人）长度不能超过255")
    private String applicantName;
    /**
     * 系统code
     */
    @ApiModelProperty(value = "系统code")
    @Size(max = 20, message = "系统code长度不能超过20")
    private String systemCode;
    /**
     * 发票申请id
     */
    @ApiModelProperty(value = "发票申请id")
    private Long invoiceApplyId;

}
